<form id="email-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="/admin/sale/config" novalidate="novalidate">
    <table class="table table-striped">
        <thead>
        <tr>
            <th width="50%">企业微信消息推送</th>
            <th width="0%"></th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>选择部门</td>
            <td>
                <div class="row">
                    <div class="col-sm-8 col-xs-12">
                        {:build_select('department[]', $groupdata, [$array.department], ['class'=>'form-control selectpicker', 'multiple'=>''])}
                    </div>
                    <div class="col-sm-4"></div>
                </div>

            </td>
        </tr>
        <tr>
            <td>选择标签</td>
            <td>
                <div class="row">
                    <div class="col-sm-8 col-xs-12">
                        {:build_select('group[]', $position_data, [$array.tag], ['class'=>'form-control selectpicker', 'multiple'=>'', ''])}
                    </div>
                    <div class="col-sm-4"></div>
                </div>

            </td>
        </tr>
        <tr>
            <td>选择人员</td>
            <td>
                <div class="row">
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control selectpage sp_input" value="{$array.userid}" name="user" value="" data-source="auth/admin/selectpage " data-multiple="true"  data-primary-key="userid" data-field="username" placeholder="搜索用户名" id="title_text"  autocomplete="off">
                    </div>
                    <div class="col-sm-4"></div>
                </div>
            </td>
        </tr>
        </tbody>
        <thead>
        <tr>
            <th width="50%">前端查看权限设置</th>
            <th width="0%"></th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>固定查看所有信息人员</td>
            <td>
                <div class="row">
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control selectpage sp_input" name="userids" value="{$array.userids}" data-source="auth/admin/selectpage " data-multiple="true"  data-primary-key="userid" data-field="username" placeholder="搜索用户名" id="userid"  autocomplete="off">
                    </div>
                    <div class="col-sm-4"></div>
                </div>
            </td>
        </tr>
        </tbody>
        <tfoot>
        <tr>
            <td></td>
            <td>
                <br><br><br><br><br><br><br><br><br><br><br><br><br>
                <button type="submit" class="btn btn-success btn-embossed">确定</button>
                <button type="reset" class="btn btn-default btn-embossed">重置</button>
            </td>
            <td></td>
        </tr>
        </tfoot>
    </table>
</form>
